package cn.highedu.coolsharkhub.entity.vo;

/**
 * 类别视图对象
 * 用于向前端页面传输商品类别数据
 */
public class CategoryVO {
    private Integer id; // id
    private String name; // 类别名

    public CategoryVO() {
    }

    public CategoryVO(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "CategoryVO{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
